package com.languages.entity

import org.apache.poi.hssf.usermodel.HSSFCellStyle
import org.apache.poi.ss.usermodel.FillPatternType

data class StyleValue(
    var content: String? = null,
    var cellStyle: HSSFCellStyle? = null
) {

    //设置背景颜色
    fun setFillForegroundColor(bg: Short) {
        //设置背景颜色
        cellStyle!!.fillForegroundColor = bg
    }

    //solid 填充  foreground  前景色
    fun setFillPattern(fillPattern: FillPatternType?) {
        cellStyle!!.setFillPattern(fillPattern)
    }

}
